function resize_max_topic_img(this1){
	this1.style.maxWidth='none';
	this1.style.maxHeight='none';
	this1.style.width='auto';
	this1.style.height='auto';
}
function resize_min_topic_img(this1){
	this1.style.maxWidth='150px';
	this1.style.maxHeight='75px';
	this1.style.width='auto';
	this1.style.height='auto';
}

function innerHTML_set_empty(id){
	document.getElementById(id).innerHTML='';
}

function add_reply_textbox(dom_id,php_did,type){
	var obj = document.getElementById(dom_id);

	if(type==0){
		obj.innerHTML='<a href="javascript:void(0)" onclick="innerHTML_set_empty(\''+dom_id+'\');return false;">关闭回复</a><form method="POST" action="/reply.php?do=reply_do&did='+php_did+'"  ><textarea name="content" id="t'+php_did+'" class="form_textarea"></textarea><input  class="form_btn" type="submit" value="提交" /></form>';
			document.getElementById('t'+php_did).focus();

	}else{
		obj.innerHTML='<a href="javascript:void(0)" onclick="innerHTML_set_empty(\''+dom_id+'\');return false;">关闭对话</a><form method="POST" action="/reply.php?do=reply_do&did='+php_did+'&type=1"  ><textarea name="content" id="t'+php_did+'" class="form_textarea"></textarea><input  class="form_btn" type="submit" value="提交" /></form>';
	document.getElementById('t'+php_did).focus();

	}

}